home *** CD-ROM | disk | FTP | other *** search
- /* MCF_WWW.AMIRX
- // $VER: MCF_WWW.amirx 5.3 (14.03.98)
- \\
- // Written by Donald T. Becker (dtbecker@prolog.net) IRC: StarDustr
- \\ Please mail any bug reports/comments to the above address with a subject
- // header of MCF_Buttons.AMIRX.
- \\
- // ** What to do with this file?
- \\ Put this script in AmIRC/Rexx
- */
- ;parse arg MyURL junk;WBPorts=show('p')||' ';select;when MyURL="" then;MyURL="http://home.ptd.net/~strdustr/amirc/MCF.html";when MyURL="URL" then call GetURL();otherwise nop;end;if 0=pos("://",MyURL) then MyURL="http://"||MyURL;select;when 0~=pos("AMOSAIC.",WBPorts) then;do;as=pos("AMOSAIC.",WBPorts);ae=pos(' ',WBPorts,as)-as;port=substr(WBPorts,as,ae);interpret "address" port "'JUMP URL' MyURL";end;when 0~=pos("AWEB.",WBPorts) then;do;as=pos("AWEB.",WBPorts);ae=pos(' ',WBPorts,as)-as;port=substr(WBPorts,as,ae);interpret "address" port "'OPEN' MyURL";end;when 0~=pos("IBROWSE",WBPorts) then;do;address IBROWSE "GOTOURL" MyURL;end;when 0~=pos("MINDWALKER",WBPorts) then;do;address MINDWALKER "openurl" MyURL;end;when 0~=pos("VOYAGER",WBPorts) then;do;address VOYAGER "openurl" MyURL;end;otherwise call LoadWWW();end;exit;LoadWWW:;WClip=getclip("mcfb_WWW");if WClip="" then exit;address command "Run >Nil:" WClip MyURL;return;GetURL:;if open("Clip","Clips:0",'r') then;do;xx=readln("Clip");call close("Clip");MyURL=substr(xx,21);return;end;if ~show('L',"rexxtricks.library") then;do;if ~addlib("rexxtricks.library",0,-30,0) then;do;say "rexxtricks.library Open Failure. EOJ.";exit;end;end;MyURL=READCLIPBOARD(0);return